﻿@model PagedList.IPagedList<NewRen.Models.SpiderNews>
@using PagedList.Mvc;
@{
    ViewBag.Title = "新闻抓取管理";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>新闻抓取管理</h2>
        <ol class="breadcrumb">
            <li>
                <a href="/Admin/Home/Index">后台管理</a>
            </li>
            <li>
                <a href="/Admin/News/Index">新闻管理</a>
            </li>
            <li>
                <a href="#">新闻导入</a>
            </li>
        </ol>
    </div>
</div>

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>新闻抓取管理</h5>
                </div>
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <table class="table">
                            <tr>
                                <th>ID</th>
                                <th>标题</th>
                                <th>时间</th>
                                <th>来源</th>
                                <th>分类</th>
                                <th>地区</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                            @foreach (var item in Model)
                            {
                                <tr id="@item.ID">
                                    <td>@item.ID</td>
                                    <td>@item.Title</td>
                                    <td>@item.DateTime</td>
                                    <td>@item.Source</td>
                                    <td>@item.Category</td>
                                    <td>@item.Area</td>
                                    <td>@item.Status</td>
                                    <td>
                                        <a href="javascript:deleteDialog('/Admin/News/SpiderDelete/@item.ID?sid=@ViewBag.SID',@item.ID);">删除</a>|
                                        <a href="/Admin/News/SpiderShow/@item.ID">详情</a>
                                    </td>
                                </tr>
                            }
                        </table>
                        @Html.PagedListPager(Model, page => Url.Action("Import", new { page }))
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

